import request from '@/router/axios';



export const getList = (page, size, params) => {
  return request({
    url: '/api/notice/list',
    method: 'post',
    params: {
      ...params,
      page,
      size,
    }
  })
}
export const remove = (noticeId) => {
  return request({
    url: '/api/notice/delete',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      noticeId,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/notice/add',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/notice/update',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const getNotice = (noticeId) => {
  return request({
    url: `/api/notice/detail/${noticeId}`,
    method: 'post',
    meta: {
      isSerialize: true,
    }
  })
}